package com.markerhub.exception.apiException;

import com.markerhub.constant.ApiExceptionCodes;
import com.markerhub.exception.ApiException;

/**
 * @Author by MaXiaofeng
 * @Description 外卖柜相关报错异常类
 * @Date 2022/2/20 10:30
 * @Version 1.0.0
 */

public class OrderException extends ApiException {
    public OrderException() {
        super(ApiExceptionCodes.DOOR_NUM_OUT_OF_BORDER.getValue(), ApiExceptionCodes.DOOR_NUM_OUT_OF_BORDER.getDesc());
    }

    public OrderException(String message) {
        super(ApiExceptionCodes.DOOR_NUM_OUT_OF_BORDER.getValue(), message);
    }
}
